package com.itheima.domain;

import lombok.Data;

import java.util.Date;

@Data
public class Answer {
      private Integer aid;
      private String content;
      private Integer qid;
      private Integer uid;
      private Integer is_accept;
      private Integer likes;
      private Date createtime;
      private User user;
      private Question question;
      private int flag;

      public int getFlag() {
            return flag;
      }

      public void setFlag(int flag) {
            this.flag = flag;
      }

      public Question getQuestion() {
            return question;
      }

      public void setQuestion(Question question) {
            this.question = question;
      }

      public User getUser() {
            return user;
      }

      public void setUser(User user) {
            this.user = user;
      }

      public Integer getAid() {
            return aid;
      }

      public void setAid(Integer aid) {
            this.aid = aid;
      }

      public String getContent() {
            return content;
      }

      public void setContent(String content) {
            this.content = content;
      }

      public Integer getQid() {
            return qid;
      }

      public void setQid(Integer qid) {
            this.qid = qid;
      }

      public Integer getUid() {
            return uid;
      }

      public void setUid(Integer uid) {
            this.uid = uid;
      }

      public Integer getIs_accept() {
            return is_accept;
      }

      public void setIs_accept(Integer is_accept) {
            this.is_accept = is_accept;
      }

      public Integer getLikes() {
            return likes;
      }

      public void setLikes(Integer likes) {
            this.likes = likes;
      }

      public Date getCreatetime() {
            return createtime;
      }

      public void setCreatetime(Date createtime) {
            this.createtime = createtime;
      }

      @Override
      public String toString() {
            return "Answer{" +
                    "aid=" + aid +
                    ", content='" + content + '\'' +
                    ", qid=" + qid +
                    ", uid=" + uid +
                    ", is_accept=" + is_accept +
                    ", likes=" + likes +
                    ", createtime=" + createtime +
                    '}';
      }
}
